import Vue from 'vue'
import VueResource from 'vue-resource';
import util from '_util/index';


Vue.use(VueResource);
var eventHub = new Vue()

//统计后台url

let statHost = "http://" + window.location.hostname + ":8899";



const state = {
  editVo: {},
  menuGroup: {},
  editVoPop: {},
  editVoModal: {},
  otherEditVo: {},
  hardCodes: {},
  searchRs: null,
  editCom_fields: null,
  searchLoader: false,
  searchRs_cleared: false,
  menus: {},
  cur_cache: null,
  eventVue: eventHub,
  menu_all: [],
  name_all: {},
  model_all: null,
  attr_aroup: [],
  current_top_menu: {},
  top_mid: 0,
  current_names: {},
  current_fields: {},
  bindVal: '',
  popInputVal: '',
  selectVals: {},
  current_ctl: {},
  is_add: false,
  isDetail: false,
  is_detail: false,
  is_list: false,
  modal_search_mid: null,
  op: '',
  modal_op: '',
  in_modal: false,
  otherEdit_op: '',
  vuexRs: '',
  defCtl: 'Menu',
  uid: 1,
  tabledata: {},
  statHost: statHost,
  userInfo: {},
  cityNameLists:'',
  cityCodeLists:'',
  cityAll:false,
  productUnitVo: null,
}

export default state;
